{% set name_max_length = ((registers | map(attribute='name') | map('length') | max) + 4) -%}
{% set address_max_length = ((registers | map(attribute='address') | map('string') | map('length') | max)) -%}
{% for register in registers %}
#define {{ c_code.file_name | upper }}_{{ register.name | upper}}_ADDR{{' ' * (name_max_length - (register.name | string | length))}}{{ register.address }}{{' ' * (address_max_length - (register.address | string | length) + 1)}}/* {{ register.privilage }} *//* {% for line in register.description.splitlines() %}{{ line }}{%- endfor %} */
{%- endfor %}
